########################################
# Handlers for restarting services
#

- name: restart auditd
  action: service name=auditd state=restarted

- name: restart apache
  action: service name=httpd state=restarted

- name: reload apache
  action: service name=httpd state=reloaded

- name: restart bacula-fd
  action: service name=bacula-fd state=restarted

- name: restart bacula-sd
  action: service name=bacula-sd state=restarted

- name: restart bacula-dir
  action: service name=bacula-dir state=restarted

- name: restart collectd
  action: service name=collectd state=restarted

- name: restart crond
  action: service name=crond state=restarted

- name: restart denyhosts
  action: service name=denyhosts state=restarted

- name: restart httpd
  action: service name=httpd state=restarted

- name: reload httpd
  action: service name=httpd state=reloaded

- name: restart iptables
  action: service name=iptables state=restarted

- name: restart jenkins
  action: service name=jenkins state=restarted

- name: restart libvirtd
  action: service name=libvirtd state=restarted

- name: restart lighttpd
  action: service name=lighttpd state=restarted

- name: restart mailman
  action: service name=mailman state=restarted

- name: restart named
  action: service name=named state=restarted

- name: restart nfs
  action: service name=nfs state=restarted

- name: restart nfslock
  action: service name=nfslock state=restarted

- name: restart nrpe
  action: service name=nrpe state=restarted

- name: restart ntpd
  action: service name=ntpd state=restarted

- name: restart openvpn
  action: service name=openvpn state=restarted

- name: restart postfix
  action: service name=postfix state=restarted

- name: restart postgresql
  service: name=postgresql state=restarted

- name: restart rpcbind
  action: service name=rpcbind state=restarted

- name: restart rpcidmapd
  action: service name=rpcidmapd state=restarted

- name: restart rsyslog
  action: service name=rsyslog state=restarted

- name: restart sshd
  action: service name=sshd state=restarted

- name: restart supervisord
  action: service name=supervisord state=restarted

- name: restart xinetd
  action: service name=xinetd state=restarted

- name: run fasclient
  action: command /usr/bin/fasClient -i
